class Queue:
    def __init__(self):
        self.items = []

    def is_empty(self):
        """判空"""
        return not self.items

    def enqueue(self, item):
        """添加"""
        self.items.insert(0, item)

    def dequeue(self):
        """删除"""
        return self.items.pop()

    def size(self):
        """返回队列中数据项的个数"""
        return len(self.items)

    def get_queue(self):
        return self.items


if __name__ == '__main__':
    q = Queue()
    q.enqueue(1)
    print(q.is_empty())
    q.enqueue(2)
    print(q.get_queue())
    print(q.dequeue())
